projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
973e887
)
(insert-parentheses): Don't insert spaces at beginning and end of buffer.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 22 Sep 1994 06:42:30 +0000
(06:42 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 22 Sep 1994 06:42:30 +0000
(06:42 +0000)
lisp/emacs-lisp/lisp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/lisp.el
b/lisp/emacs-lisp/lisp.el
index 07a22698c6e7cce9b3333d0617b6f43f8156f794..fd9ae0c078a71935ae4fd078318cbc7b31e54723 100644
(file)
--- a/
lisp/emacs-lisp/lisp.el
+++ b/
lisp/emacs-lisp/lisp.el
@@
-218,6
+218,7
@@
before and after, depending on the surrounding characters."
(setq arg 0))
(or (eq arg 0) (skip-chars-forward " \t"))
(and parens-require-spaces
+ (not (bobp))
(memq (char-syntax (preceding-char)) '(?w ?_ ?\) ))
(insert " "))
(insert ?\()
@@
-225,6
+226,7
@@
before and after, depending on the surrounding characters."
(or (eq arg 0) (forward-sexp arg))
(insert ?\))
(and parens-require-spaces
+ (not (eobp))
(memq (char-syntax (following-char)) '(?w ?_ ?\( ))
(insert " "))))